Programming - Object Oriented Code - Formative Quiz

OPENING QUESTIONS: 

Please work *solo* to design a program in app lab: (This isn't graded but it will inform me of everyone's programming ability level).

  1. Create a brand new program in app lab named "OOPformative" using the appropriate file naming standards found in our course coding specifications document (Coding Specs Ver 1.64 is HERE)
  2. Make sure there is an appropriately crafted 'header' to you program using comments that gives your name, period, date etc...(Coding Specs Ver 1.64 is HERE)
  3. Be sure the EACH and EVERY object you place on the screen is named appropriately (Coding Specs Ver 1.64 is HERE)

Please add the following screen objects and programming as necessary:

  1. An invisible label at the bottom of the screen
  2. A drop down list contains 3 options: Square, Circle
  3. A text box is present with a label that says "Size: " so the user can enter the length (for squares) or radius of a circle.
  4. A label for that drop down list that prompts the user to select one of those shapes
  5. If the user selects the circle option:
    • the program calculates the area of that circle
    • the invisible label at the bottom of the screen becomes visible
    • the label shows the area of the circle

embellishments if time permits:

  1. make it so the invisible label at the bottom of the screen reads: "The area of the circle is: " (followed by the actual area of the circle)
  2. and if the user selects the square option, the invisible label at the bottom of the screen reads: "The circumference of the square is: " (followed by the actual circumference of the square)
  3. and if the user selects the rectangle option, the invisible label at the bottom of the screen reads: "The area of the rectangle is: " (followed by the actual area of the rectangle)

OBJECTIVES: I will working with the Code.Org development platform to do very basic object oriented coding during today's class.

COURSE DOCUMENTS:

Coding Specs Ver 1.64 is HERE

My code sample for today is HERE (please be sure to rename that file to save it in your own library of programs/code

WORDS FOR TODAY:

Every single object we place on the screen MUST have a name and that name MUST comply to our classroom naming standards. Why is that?

WORK O' THE DAY

═══════════════════════════